A simple implementation of a securities exchange