Write sample implemtation for two interfaces