got nim sum partially working.