Started rewriting ruby to groovy