correcting cwt tutorial example