Created printName method