Basic implementation of the meanfield model from Cona2011