source codes for CodeIQ (just for excercise).