changed class to trait and fixed markdown