preparing prescription as composition inheritance