Changed what() method access specifier to public