added problem1 solution
cleaned up some code
cleaned up code, fixed bugs
added solution for task 3 from hw1 (ugly, but it works)
improved problem 1 solution
not ok - writing tests
finally solved it
fixed output