use classes with setView in the todo example