Creating an observable using range ()