Turn inputTotal and outputTotal into methods