first solution for areas