Added in a simple nested object encoding and decoding....to work on another way.