first attempt assignment 2