Alex was walking home from work.
When he remembered the candy bar, he found it melted in his pocket.
Earlier, he'd packed a chocolate bar for a snack.
Earlier, he had eaten the chocolate bar he'd packed for a snack.