Simplified class constructor