HW_2, Task_1: first use of template

with some problems