Part 2 of mini project based on exercise 1.2 in Computer Graphics for Java Programmers