handling exceptions
catching class castexception
catching npe