Code for area, needs debugging