class Source etc into template