todo app bit more idiomatic (hopefully:-)