partial homework 4 code