implementing todo on main file