scala study demo