completed thinking about functions