ProgrammingLanguages. Solved first problem of assignment2