updated working todo functions exercise