Marking classes and methods with attributes