Completed the second function and uploading to Github