added rules for the program.