Added constructor to Block class.