[#18] Save function implemented