Complete inheritance exercise