added checkout method