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.

Ex Input:
entity: carpet
before: odorless
after: pungent smelling
attr: odor

Ex Output:
odor of carpet was odorless before and pungent smelling afterwards

Ex Input:
entity: ingredients
before: whole
after: blended
attr: composition

Ex Output:
composition of ingredients was whole before and blended afterwards

Ex Input:
entity: cellphone
before: uncharged
after: charged
attr: state

Ex Output:
state of cellphone was uncharged before and charged afterwards