How to make pololu move in a square using its gyroscope?

I need to move my pololu in a square shape using its gyroscope, how can i do it?

Pololu is a company that provides components and devices for robotics enthusiasts.

I suggest to identify your device, post a link to the product page, and post the code showing your best effort to solve the problem.