This is a simple java exercise