Implement square pattern