Code update with test html.
Features added:
1) Added extends feature