flowchart
added storedata function