Started implementing LearningRule and HPES rule.