Improved 'graph' program :)