Tested and Working Encoder Code