Using methods instead of fields