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: fabric
before: flat
after: ironed
attr: shape
Example Output: shape of fabric was flat before and ironed afterwards

Example Input: entity: legs
before: getting heavy
after: feeling fine
attr: pain
Example Output: pain of legs was getting heavy before and feeling fine afterwards

Example Input: entity: snacks
before: loose
after: packed
attr: state
Example Output:
state of snacks was loose before and packed afterwards