Version 1

First stab at this script.