finished through 4th code exercise for udacity