Created the initial implementation of BehaviorSubject