Created function with 3 para