added polygon and regular polygon classes