Title: Pigpen Problem. How to Calculate Area and Perimeter