This should be kept out of the model class, which should only check the validity of the data it is fed.