Q8 done and functional in java