   if (! rtc.isrunning()) {
     Serial.println("RTC is NOT running!");
   }
-  matrix.begin(0x70);
+
   alarm = new AlarmClock();
+  display = new Display();
   pinMode(VIEW_BUTTON, INPUT_PULLUP);
   pinMode(SET_MINUTE_BUTTON, INPUT_PULLUP);
   pinMode(SET_HOUR_BUTTON, INPUT_PULLUP);
+  pinMode(ENABLE_ALARM_BUTTON, INPUT_PULLUP);
+  pinMode(SNOOZE_BUTTON, INPUT_PULLUP);
 }
 
 void loop () {

    }
    delete clock;
    clock = alarm;
  }
  matrix.print(formattedTime(clock), DEC);
  if(clock->isPm()){
    matrix.writeDigitRaw(2, 0x0A);
  }else{
    matrix.drawColon(true);
  }
  matrix.writeDisplay();
  delay(500);
}

#include <Wire.h>
#include "RTClib.h"
#include "Clock.h"
#include "Display.h"

#define VIEW_BUTTON 9
#define SET_MINUTE_BUTTON 8
#define SET_HOUR_BUTTON 7
#define SNOOZE_BUTTON 6
#define ENABLE_ALARM_BUTTON 5

RTC_DS1307 rtc;
Display* display;
AlarmClock* alarm;

void setup () {
