Adding encoding capabilities

first go - experimental