A space simulation in Java for an object-oriented programming class