split .sub into a second part that does the inheritance bit (.inherit)
ensure name is set on a sub class
test the .sub functionality