Given an entity, a before event, an after event, and an attribute related to the entity, generate a sentence as output. Your sentence should show the changes in the attribute of the entity.

Example Input: entity: brake pedal
before: raised
after: depressed
attr: location
Example Output: location of brake pedal was raised before and depressed afterwards

Example Input: entity: spoon
before: clean
after: dirty
attr: cleanness
Example Output: cleanness of spoon was clean before and dirty afterwards

Example Input: entity: tofu
before: whole
after: cut into squares
attr: shape
Example Output:
shape of tofu was whole before and cut into squares afterwards