Drawing Hasse diagram