Refactor + working buying