Uploading answer for #2