[example] Enhance model with abstract class

Make `Issue` class abstract and add `Bug` and `Task` subclasses.