How to construct earthquake resistant building