Main Code Added

Main function code included.