For me it looks like your hours method is inside the main method but since your code is poorly formatted it is hard to tell.