item purchase implemented. Corresponding stock and activity functions also modified