Adding code for defining methods