added code

The source code. Compiles.