First version of some code