added n-class example

just a copy of 2-class at the moment