completed functions exercise