Creating the prefix calculator