Added Encoder Sample Code

two types of print encoders