added charge attribute to Formula class.