First version with all computations