created variables to store width and height