You should use a class for this.