Added another groovy solution