Text this: Discrete approach to modeling of heterogeneous materials /