A short coding exercise