add function Buy