what is block inheritance code here used for?