Implement task1 and task2 (Self education)