working demo, time to start in on real code
framework for encoder