How media companies became technology companies