Added constructor
Made block class serializable