Now to handle the case when tign is given, use perimeter_in_tign