format code in TodoList model