assignment 3 first attempt