first working implemantation

it is called when contain has a param "weighten" with a integer value in
the range of 1-99