removed getName() method, which is implicit called when the toString()
method is implemented.