reordered code
switch to CRUD API
make Memo as a real MVC structure