add spec and code for tasks array for List class