learning events, writing to files, Jitems etc