Made use of parameters clearer by using data-encapsulation.