Internal functions exercise 1