is there any difference between methods and functions ?