Here some sample code of data structure. If you think I have any mistake please contact asawom250@gmail.com