how to create object