implement the method to create methodblock