Error types corrected
Changed error types for Lab8