Methods should be defined before using them