add final encode and decode methods
adapt working package and dir structure ex4
add own tests ex4
make ex1 ready for package
make ex2 dir ready
make ex3 ready
dinal ex3