Added Block.java code