Removed typo errors, and recursion in inheritance