A simple implementation of nc