Completed hw3-2