package Ġde . k itchen list . control Ċ Ċ import Ġjavafx . beans . property . Simple Boolean Property Ċ import Ġjavafx . beans . property . Simple String Property Ċ import Ġjavafx . collections . Observable List Ċ import Ġde . k itchen list . model . Log Ċ import Ġde . k itchen list . model . Person Ċ import Ġde . k itchen list . model . Product Ċ Ċ data Ġclass ĠController ( val Ġpersons : ĠObservable List < Person >, ĊĉĉĉĉĉĠ Ġval Ġproducts : ĠObservable List < Product >, ĊĉĉĉĉĉĠ Ġval Ġlog : ĠLog ) Ġ{ ĊĊ ĉ var Ġis LoggedIn Ġ= ĠSimple Boolean Property ( false ) ĊĊ ĉ fun Ġcreate Person ( firstName : ĠString , ĠlastName : ĠString ) Ġ{ Ċĉ ĉ val Ġperson Ġ= ĠPerson ( Simple String Property ( firstName ), ĠSimple String Property ( lastName )) Ċĉ ĉ persons Ġ+= Ġperson ĊĊĉ ĉ log . append (" Ne ue ĠPerson Ġer stellt ! ĠN ach name : Ġ$ lastName , ĠVor name : Ġ$ firstName ") Ċĉ ĉ person . log . append (" E rst ell ung !") Ċ ĉ } Ċ } Ċ