Lear to Program: The Fundamentals. Assignment 3