Created basic function with var