Geometry project, in Groovy