added buy function
Merge pull request #9 from ozayyad/pair-ozayyad,mulv3959

added buy function