Adding the libraries.
Solving problems 1 - 4