Scala style bean usage