basic implementation of decoder api

basic implementation of decoder containing objects definition