After several hours of studying, Tom felt a sense of dismay when he realized he did not understand the material at all. What is a synonym for 'dismay' as used in this context?