added print function, code not compiling yet