Exercise code on C.S. fundamentals