add methods and panic example.