2nd year programming assignment