Why does it work to call method4 without being static?