added more utility functions for class definitions