Fix Arraylist destructor
Change Timer to template