Also there should be a blank line before function definition.