Modelling defects in crystal lattices