completed up to chapter 6 exercises
finished ch.6 exercises except encode/decode