Modified script to make a function out of it and print numbers