called teach and learn method on instances