created rectangle class with attributes
rectangle class can return perimeter and area