Move inheritance code to gist.