scripts for learning and testing