if (Calculators == undefined) {
	var Calculators = {};
}
if (Calculators.type == undefined) {
	Calculators.type = {};
}
Calculators.type.CollegeSavingsYearlySnapshot = function CollegeSavingsYearlySnapshot(beginningBalance, investment, contributions, expenses) {
  this.snapshot = new Calculators.type.YearlySnapshot(beginningBalance, investment, contributions, expenses);

	this.getBeginningBalance = function() {
		return this.snapshot.beginningBalance;
	}
	
	this.getInvestmentGrowth = function() {
		return this.snapshot.investment;
	}
	
	this.getContributions = function() {
		return this.snapshot.contributions;
	}
	
	this.getExpenses = function() {
		return this.snapshot.expenses;
	}
	  
	this.getInvestmentGrowth = function() {
		return this.snapshot.contributions.add(this.snapshot.investment);
	}
	
	this.getEndingBalance = function() {
		return this.snapshot.beginningBalance.add(this.snapshot.contributions).add(this.snapshot.investment).subtract(this.snapshot.expenses);
	}
}

