Trying to decouple model from gui