developed and tested model & json serialisation