basic logic built

The logic of the v1.0 has been implemented
TODO: test