model + model tests

Signed-off-by: Chr1211 <Chrlol@hotmail.com>