Using annotation instead of attributes