An implementation of a simple