added square features in 3rd script