finishes outline for pattern model (still need to do file upload)