snippet to create a property