wrote Block.java and Point.java