almost finished homework 1