updated readme for inheritance