refactor code
refactor code

googleinterns/power-data-graphing-intern-2020,googleinterns/power-data-graphing-intern-2020,googleinterns/power-data-graphing-intern-2020,googleinterns/power-data-graphing-intern-2020,googleinterns/power-data-graphing-intern-2020