add print function of demographic model