The class working collaboratively was somebody else's idea.
In this sentence, why is it possible to say "the class working collaboratively"? I have seen so many sentences with words ending in -ly form taking this type of form below.
The poorly lit room was very grimy.
It is not acceptable to say "room poorly lit", which led me to thinking that "the collaboratively working class" should be the correct one.
The collaboratively working class was somebody else's idea.
Any explanations please?