refactored note and task model to use input class