What are the factors to be considered to write a method as Procedure or function?