another version of 4a command line task