HW6:task2: modified according to styleguide