[API] added "function" class prototype