Getting structure in place for encode methods