added compile rules
added print statement for feedback