add task4 (inheritance)