java portion of lab1 is done