Version 1

First version of the code.