completed solution and spec for consecutive