A stratigraphic basin-filling model