Added functionality for getting next Dilbert
Added tests, refactoring