Added checker code
Added custom exception class for the checker