Changed TaskList to be typesafe via generics.