Remove 5 Sticks

Given the following configuration of sticks, remove exactly 5 sticks in such a way that the remaining configuration forms exactly 3 squares.
 _  _ 
|  |  |
 _  _ 
|  |  |
 _  _ 
|  |  |
 _  _ 

The difficulty here is that the problem depends largely on human perceptual capabilities. Computers lack these (unless we make this problem a computer vision problem, which is *much* harder!) A data structure needs to be created that permits the easy detection of squares.