using Todo class on both server and client