working on testing code for cipher.c