Adding time variable to graphs

That is part 3.3 in my writeup here.