Added basic structure of learning.