Added printName method