Using accessor_method instead of directly using variable.