function Rect(x, y, width, height, color, number) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.color = color;
this.number = number;
this.draw = function() {
var canvas = document.getElementById("canvas");
var context = canvas.getContext("2d");
context.beginPath();
context.rect(this.x, this.y, this.width, this.height);
context.fillStyle = this.color;
context.fill();
context.stroke();
}