Separating class into methods.