added task to To-do list
proper conversion to OOP