extractStyles implemented + tested