add classes  and objects / add exception handling

add classes  and objects / add exception handling