Coding exercise for dzap