Timer class extended and now using hashmap