supermarket checkout implementation