Wrote skip function for List