Modified one letter to keep consistency in error()
Implemented the declaration of error()