Added format specifier to code to print name.