A fitness-meets-marital-contract class offers to teach people about stretches, protein balls and financial planning.