Complete homework 3