week 4 - improve encode and decode but still not working