First working model

v1.0 Preliminary code ready