hw5, ex3 done