implement temporal histogram task and a simple test of it