Added object override for getName method