Creating a script to draw shapes automatically