saving test data for area estimate
refactoring code