# IntervalIteratingSystem
It is also possible to combine the logic of IteratingSystem and IntervalSystem thanks to IntervalIteratingSystem. In this case, you will need to implement its processEntity() method.
@Service()
class MovementSystem extends IntervalSystem {
public constructor() {
super(Family.all(PositionComponent, VelocityComponent).get(), 0.016);
}
protected override processEntity(entity: Entity) {
const position = entity.require(PositionComponent);
const velocity = entity.require(SpyComponent);
position.x += velocity.x;
position.y += velocity.y;
}
}