Solutions to Exercise 4

1.

2.