Math and masonry