Typo and method in wrong class for inheritance