Temporal models

A first attempt at the temporal models. I'll leave open for a few days for review.