restrict method and class access modifiers to default when possible