Program working good :D need to add some details and improve algorithm.