Added new method to learn