bar setwidth( bar draw(winlet' try to combine these two into single function that draws bar on the screen in order to draw the barwe need some information specificallywe need to know what year the bar will be forhow tall the bar will beand what window the bar will be drawn in these three values will be supplied as parameters for the function here' the function definitiondef drawbar(windowyearheight)draw bar in window for given year with given height bar rectangle(point(year )point(year+ height)bar setfill("green"bar setwidth( bar draw(windowto use this functionwe just need to supply values for the three parameters for exampleif win is graphwinwe can draw bar for year and principal of $ , by invoking drawbar like thisdrawbar(win incorporating the drawbar functionhere is the latest version of our future value programfutval_graph py from graphics import def drawbar(windowyearheight)draw bar in window starting at year with given height bar rectangle(point(year )point(year+ height)bar setfill("green"bar setwidth( bar draw(windowdef main()introduction print("this program plots the growth of -year investment "get principal and interest rate principal eval(input("enter the initial principal")apr eval(input("enter the annualized interest rate")create graphics window with labels on left edge win graphwin("investment growth chart" win setbackground("white"win setcoords(- ,- text(point(- ) 'draw(win