Improvement of the code
some problems resolved with reading data
The current implementation is tested with the simplest data example
continue in this direction with building up the complexity and
controling the results