Adding optional type annotations in function declarations