Spanish Dictionary

When we got our room at the Rex we were shocked once again. The room had a terrible smell of cigarettes and we insisted on moving. The next room they gave us was a non-smoking room.
I understand that you use the article 'die' when talking about a feminine object, das when the subject is neutral, and der when talking about a masculine object. But how can you remember all these?
The same afternoon (October 4) we took a flight to Arequipa, spearing a bus ride of 12 hours. Due to heavy winds we had a delay of 2 hours. We took off at around 4.30pm.
I understand that you use the article 'die' when talking about a feminine object, das when the subject is neutral, and der when talking about a masculine object. But how can you remember all these?
The same afternoon (October 4) we took a flight to Arequipa, spearing a bus ride of 12 hours. Due to heavy winds we had a delay of 2 hours. We took off at around 4.30pm.