Refactor ExecProc class to use the standard way of defining a class