moved asciiGraph into its own function