refactored  task1 and task2
added task3
added General class who contain general methods for all tasks