added typescript inheritance

added typescript inheritance