Added constants class and imporves problem model.