refactoring ListModel class and updating Spec
refactoring Task Model and updating Spec