Experiment with Java object oriented concepts