simple java console application (that shows knowledge in OOP)