Rewrite this sentence in a more formal manner while maintaining its meaning.
I didn't want to take the class.
I had no desire to enroll in the course.
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite this sentence in a more formal manner while maintaining its meaning.

### Input:
I didn't want to take the class.

### Output:
I had no desire to enroll in the course.