sample implementation of simple supermarket \