How to draw a square knowing the length of one side