Add method class "addMethods"