ProgrammingLanguages. Second part of solutions for assignment2