finished outline of temporal pooling inference only