Use inheritance.