Now the model is well implemented, and it calculates the Energy as function of time