added sample output including learn function. -MM