adding getName() method