Implemented a simple indicator calculator