added class inheritance #11
added class inheritance #11