created MemoryLimitManager and TimeLimitManager to shift responsibilities