Updated TaskManager.cs..Editted RemoveByType and Remove methods.