basic questions, enc/dec working sample