Integration of Java and Groovy for teaching purposes