added use of attributes and new cookbook