Modified example to use interfaces in a class method as well. Also added support for clang compiler in Makefile.