got inheritence working and updated example