There are two tasks involved in the demo program. One is to provide a user interface, a GUI. The other is to provide the expertise needed to determine whether a number is prime. This suggests that we should break this problem up into two objects: a PrimesApplet object, which will manage the interface, and a Primes object, which will contain methods to determine whether a number is prime and to find prime numbers within a certain range.