Changes to task 1,2.Task 3 is not working for now.

added new exceptions and inheritance.