Syntax error corrected (print statements removed)