Legend changed according to Karim's directions

labels --> outputs