add type declaration for problem 36