Creates a function that takes in a value, and ouputs an object with that value as a property