changed classes, so they inherit all from object