Third assignment for course Introduction To Programming