assigning a contract

Hello all, i’m looking at a few properties now and i wanted to know could some explain to me how does the assignemnt of a contract works step by step. Also,can some sned me a one page pruchase agreent and a assigment agreement.

thanks guys