SpatialModel function

R6 class representing a spatial model