Updated Source Code
Sample input to test the programs