finsihed 2nd demo on inheritance