studies project in java (sigh)