Factory for creating constructor functions which inherit from other functions; classical-style