might make sense to state that java does not have functions like JS or Dart. Only methods.