finish SkyLine codes. To be tested