managing resources inside of object.