Download to look at the scripts - I put comments on to help anyone who is interested in learning to do this :)