update todo app for m3
updated anagram sample to M3