add solution to hw 1.4

and reorganize project structure