added method to average and graph binary class attributes