Modelling dunes and a waterway