Added sample code for inner classes
added sample constructor and examples for inner classes and variable access
added example for polymorphism