Creating Classes and their Objects in Java