added inheritance & composition based programs
added instanceOf