basic object saving implemented