How to make a magnetic square?