#7 Done in Java