Implemented the Model class

Added a getId() function that was not specified in the design diagram at
the time.