base on oodesign example with php language