Updated to print the ways