writing a demo cipher and test