Task 1.2: not optimized