added xml imports and 2 functions to the model class