Why here a arity errror and how to solve it

I try to implement my own update-in as challenge from the brave book

so far I have this :


(def m {:1 {:value 0, :active false}, :2 {:value 0, :active false}})


(defn my-update-in [m keyword number function]
  (function (get-in m  [(number keyword) keyword]) ))

(update-in m [:1] assoc :value 1 :active true)

(defn add-ten [number]
    (+ number 10))

(my-update-in p :age add-ten)

but now I see a arity error on the last one.
So how I can I make the code work in both cases