A short exercise I did when learning about constructors and inheritance with JavaScript