Changed square container methods to work with square pointers