Completed third script