#2nAdding simple error handling