Committing two classes that make up the solution for exercise 3.