implemented the stations generation (it works up to k=20)