Declaring a class that conforms to multiple interfaces