added rest of pp4

need type checking for print statement