Initial commit of a naive implementation.