I'm just modifying the previous version so that there's no for loops, meaning potentially better compatibility, as well as adding centering to the print function.