Function pen