Trying to add a checkout function