Solved problem 19, support for parameter types