My object oriented programming assignment in the second semester of year 2