internal functions exercise part 1