Use setter and getter to define methods