Modelling of masonry wall buildings