finished homework no. 4