task 1 decode and encode done and tested