write solution and rspec for todo