Groovy script showing samples of groovy closure.