Courses lead you healthier at middle ages