Dodat printf u function f