Added provided source code for PA1