No it was not difficult to figure out how to rewrite square using a for-loop. The strategy i used was reading