an example of a class
inheritance and prototypes
handling exceptions