Write first draft of SubBlockLogic
Wrote BlockLogic too