Assignments of Principles of programming languages written in functional style