made changes to original file and added comments for each step