work type by function

square