demo for scala