basic bash script to run whole AB learning