Well, have a look at the error message. What does it tell you?
Does "must be defined in the object type body" give you a clue as to how to fix the error?
For example, have you checked the object type body for these two functions, and are they present?