M ways