Using inherits and fixed same function name problems.