Updated groovy version
Added code to allow to send Class as parameters