added learn function and exe 5