modify extends() so superClass does not need to be hardcoded