Add the initial code.  Warning, bugs abound.