Fixing error in ch 3