Carpenter's lawsuit alleges gender-based firing