save functionality sample code