more scala puzzle samples