scala fence