use of methods function to implement get_methods...