Class exercises in object oriented programming 1 using Java.