snowman logic