working version of basic todo