Add basic proof of concept: encode and decode