Problem calling a function from another function

Hint: hitting CTRL+T gives "too many closed curly braces".