playing around with our own sequence function