Changed block from curly braces to 'do...end'