Exercise 1.10 and 1.11

- Reformatted some code
- Finished 1.10 and 1.11