The article presents some aspects concerning the construction of a new thorn for the Cactus code, a complete 3-dimensional machinery in numerical relativity. This thorn is dedicated to numerical simulations in cosmology, that means it can provide evolutions of different cosmological models, mainly based on Friedman- Robertson-Walker metric. Some numerical results are presented, testing the convergence, stability and the applicability of the code.