313jpg memento design pattern