Added ManageError class and starting to implement