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: container
before: outside of closet
after: inside closet
attr: location
Example Output: location of container was outside of closet before and inside closet afterwards

Example Input: entity: blocks
before: on floor
after: in doorway
attr: location
Example Output: location of blocks was on floor before and in doorway afterwards

Example Input: entity: beans
before: outside container
after: inside container
attr: location
Example Output:
location of beans was outside container before and inside container afterwards