Save object

first commit of save - implmentation of firebase.