Learning and earning