adding rule tab
printing the solution to console if one is found