Making use of setName method