It now runs, but gets wrong result... More work needed