Successfully implemented slot generation algorithm, added tests