A multi-agent dynamic model based on different kinds of bequests