added agent time class and tube agent code