Add solution to problem 5
Use function application instead of parentheses