finished with exercise 1 of hw5