method order in classes