added initial groovy and java code for Part 1