oop learning
add error&exception handling example