Source Code Added

Working code added. Program can now be compiled and ran.