Create encoder.h

header file for encoder.cpp