working on use cases js