add groovy solution