Added Exceptions. Task 4: done. Teste task 5: done