Primitive form of function implemented