solving exercices in chapter 11 (interfaces)