COMPLETED: homework 2 is done