Hygiene first.
firstly d) wash the beans and discard the bruised beans. (cleans away dirt first)
next c) soak the beans in cold water overnight. (to let the beans soften/ expand)
next b) add the tomatoes (mixing other ingredients)
finally a) add the syrup for the final touches and taste (its like garnishing)