Work on squares generator