writing simple predictors and plotting features