hw4

homework 4 code