Supporting classes for server