Solving the Homework Problem by Flipping the Learning