Return by const reference instead of by value in parameters class.