Wrote a simple envelope generator