A layer approach to risk