Implement getName method