Added some logic to the getById method.
Removed console.log().