implemented section 3
hw4 part1 done