Tag Class and Objects in Java