added Envelope class