extending classes from object