Dictionary implemented.
Solved exercise 3.