const Lamp = (function() { return function meCoolLamp() {
meCoolLamp.prototype.turnOn = function() { console.log('Lamp is On!')}
meCoolLamp.prototype.turnOff = function() { console.log('Lamp is Off!')}
};})()
const myCoolLamp = new Lamp();
var startDate = new Date(2017, 3, 19, 15, 00);
var now = new Date();
if (now > startDate) {
myCoolLamp.turnOn();
} else {
myCoolLamp.turnOff();
}