Initial try to implement a filewriter using Observer Pattern