Completely working code for basic square.