var sustainableliving = new sustainableliving(); sustainableliving.initialize(preexpenditure: 0, alert: "welcome to the journey!", topsecret: "reuse, reduce, recycle"); foreach(var item in sustainableliving.items) { if(item.caneludewaste()) { sustainableliving.resetfromzero(); } }