First working version of static DC solving