create Block class