and yes, some words don't have the same gender as you may think. like water [wasser], in fact, that's a funny part, some languages interpret water as a female noun, but in german, it is neutral, french? male. portuguese female.
the sun? female. the moon? MALE.
der Mond.
die Sonne