This is a better way to reopen the class dynamically.