code to allow inherit from fundamental classes