Now prints error messages
Ready for lab1a