Defining objects and inheritance