completed the first Java assignment