third method

added thirdmehtod