Creating a custom object