Simulations on computers: elements and examples