homework4 exo1 part a