wrote PrintTrack method for Agent class