Cook white beans and ham