Working version of simplelearner