added my function for example generation, changed sequence length