put some logic in place for checking out. Not working correctly yet, but the ideas are there