implemented Unmarshal for simple objects