copy code from sync-chat
copy store code from sync-chat
update state and view solution
almost finished prototype