Learning rapidly by doing and failing fast