finished lab4 part a!