one more solution for task 1.3
task 1.4 - partly implemented (only a single solution for now)