Implement basic code structure for encoder module