School project in java part 1