added graphing with matplotlib