M-GO coding exercise