Refactor BuyItem method