Typeinfo exercise 20 ...3, basic function works, optimize the command line