refactored spec
Added pie chart