struggling on lab4PartC
finally finished lab4