Fully Working Code Added.