implemented name and print