Added learn method to student class