FRI schoolwork, java examples