An organic compound is one which consists of a chain of carbon atoms with other atoms bonded to the chain.
Pentane has 5 carbon atoms with surrounding hydrogens.
glucose is a chain of 6 carbon atoms
butane is similar to pentane
water has no carbon atoms, and the central atom is oxygen ---> therefore it is inorganic!