added nested attributes.  Untested