adding example self-energy calculation