New Trace class and added Tail test code