Added rule and frame logic to evaluateModel function. Need to make rules based on the user's input.