Cindy created sampling functions and a skeleton of the parent function