ex4

part 1
ex4 completed