created all the getters and setters and adjusted the boxemitter method