Extracts a buy method from Main to create a better SD.