Lewis structures can sometime be deceptive when determining molecular shape because they are drawn in two-dimensions. Examine the Lewis structures. Which is not linear and why?
CO2 because it has double bonds
BeCl2 because beryllium is an exception to the octet rule
H2S because it has lone pairs on the central atom
All are linear