Trying use mvc pattern