added some details for my solutin