Added `logic.scala`