Wrote vector append and prepend sections