Demo used in java oop tutorial