Added file block.cpp which I accidentaly deleted in previous commit