-Add rectangle helper function