figuring out how paperclip works; look at document for an example