Lanning Programming assignment 2