examples for scala