Modelling stylized features of default rates