The shapes of the molecules are:
CH4 - Tetrahedral; NH3 - Trigonal pyramidal; H2S - Bent; C)2 - Linear.