* Modified Module definition 'extend' clause in favour of 'extendsClass'.
* Added optional.
* Fixed samples to show extendsClass call.