added graphs to rails