implement full of bugs prototype for testing of the model