model and test done

Signed-off-by: loopasam <samuel.croset@gmail.com>