Commit solution for ex1.
Commit solution for ex2.