<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>010 - Disclosure - 6. Commitments</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>c2_From1Apr2013To30Jun2013</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001454742</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2013-04-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-06-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="3 Months Ended" /><Label Key="Calendar" Id="1" Label="Jun. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_DisclosureTextBlockSupplementAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Disclosure Text Block Supplement [Abstract]</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_CommitmentsDisclosureTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>terseLabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="c2_From1Apr2013To30Jun2013" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;div style="LINE-HEIGHT: 10.25pt; TEXT-INDENT: 0pt; DISPLAY: block; MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;

      &lt;font style="DISPLAY: inline; FONT-FAMILY: Times New Roman, serif; FONT-SIZE: 9pt; FONT-WEIGHT: bold"&gt;6.&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;

      &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;Commitments&lt;/font&gt;

    &lt;/div&gt;&lt;br/&gt;&lt;table id="list-5" style="width: 100%; font-family: times new roman; font-size: 11pt; margin-left: 30px;" cellspacing="0" cellpadding="0"&gt;



        &lt;tr valign="top"&gt;

          &lt;td style="width: 56px;" align="right"&gt;

            &lt;div&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;a)&amp;#160;&amp;#160;&amp;#160;

              &amp;#160;&amp;#160;&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

          &lt;td width="1509"&gt;

            &lt;div style="text-indent: 0pt; margin-left: 0pt; margin-right: 0pt;" align="justify"&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;On

              October 12, 2011, the Company entered into a verbal

              consulting agreement with a non-related party whereby

              the Company will pay a monthly consulting fee for

              services provided in the amounts of $3,000. The

              agreement is for a one month term automatically

              renewing in each successive month unless earlier

              terminated. On July 18, 2012, the Board of Directors

              reviewed the consulting agreement and authorized an

              increase to the monthly consulting fee from $3,000 to

              $3,750 per month beginning July 2012. On October 1,

              2012, the Board of Directors reviewed the consulting

              agreement and adjusted the consulting fee from $3,750

              to $3,000 per month beginning October 2012.&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

        &lt;/tr&gt;



    &lt;/table&gt;&lt;br/&gt;&lt;div style="LINE-HEIGHT: 10.25pt; TEXT-INDENT: 0pt; DISPLAY: block; MARGIN-LEFT: 44pt; MARGIN-RIGHT: 0pt" align="justify"&gt;

      &lt;font style="DISPLAY: inline; FONT-FAMILY: Times New Roman, serif; FONT-SIZE: 9pt"&gt;During

      the period ended June 30, 2013, the Company incurred $18,000

      (December 31, 2012 - $38,250) in consulting fees relating to

      this agreement, of which $24,000 (December 31, 2012 - $6,000)

      is recorded in the account payable balance as at June 30,

      2013.&lt;/font&gt;

    &lt;/div&gt;&lt;br/&gt;&lt;table id="list-6" style="width: 100%; font-family: times new roman; font-size: 11pt; margin-left: 30px;" cellspacing="0" cellpadding="0"&gt;



        &lt;tr style="margin-left: 60px;" valign="top"&gt;

          &lt;td style="width: 56px;" align="right"&gt;

            &lt;div&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;b)&amp;#160;&amp;#160;&amp;#160;

              &amp;#160;&amp;#160;&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

          &lt;td width="1509"&gt;

            &lt;div style="text-indent: 0pt; margin-left: 0pt; margin-right: 0pt;" align="justify"&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;On

              October 12, 2011, the Company entered into a

              consulting agreement with a non-related party whereby

              the Company will pay a monthly consulting fee for

              services provided in the amounts of $27,500. The

              agreement is for a one month term automatically

              renewing in each successive month unless earlier

              terminated.&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

        &lt;/tr&gt;



    &lt;/table&gt;&lt;br/&gt;&lt;div style="LINE-HEIGHT: 10.25pt; TEXT-INDENT: 0pt; DISPLAY: block; MARGIN-LEFT: 44pt; MARGIN-RIGHT: 0pt" align="justify"&gt;

      &lt;font style="DISPLAY: inline; FONT-FAMILY: Times New Roman, serif; FONT-SIZE: 9pt"&gt;During

      the period ended June 30, 2013, the Company incurred $165,000

      (December 31, 2012 - $330,000) in consulting fees relating to

      this agreement, of which $241,000 (December 31, 2012 -

      $91,000) is recorded in the account payable balance as at

      June 30, 2013.&lt;/font&gt;

    &lt;/div&gt;&lt;br/&gt;&lt;table id="list-7" style="width: 100%; font-family: times new roman; font-size: 11pt; margin-left: 30px;" cellspacing="0" cellpadding="0"&gt;



        &lt;tr valign="top"&gt;

          &lt;td style="width: 56px;" align="right"&gt;

            &lt;div&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;c)&amp;#160;&amp;#160;&amp;#160;

              &amp;#160;&amp;#160;&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

          &lt;td width="1509"&gt;

            &lt;div style="text-indent: 0pt; margin-left: 0pt; margin-right: 0pt;" align="justify"&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;On

              October 12, 2011, the Company entered into a

              consulting agreement with the President and CEO of

              the Company whereby the Company will pay a monthly

              consulting fee for services provided in the amounts

              of $3,000. The agreement is for a one month term

              automatically renewing in each successive month

              unless earlier terminated. On June 10, 2012, the

              Board of Directors authorized an increase to the

              monthly consulting fee from $3,000 to $6,000 per

              month beginning June 2012. On July 18, 2012, the

              Board of Directors reviewed the consulting agreement

              and adjusted the monthly consulting fee to $3,750

              beginning July 2012.&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

        &lt;/tr&gt;



    &lt;/table&gt;&lt;br/&gt;&lt;div style="LINE-HEIGHT: 10.25pt; TEXT-INDENT: 0pt; DISPLAY: block; MARGIN-LEFT: 44pt; MARGIN-RIGHT: 0pt" align="justify"&gt;

      &lt;font style="DISPLAY: inline; FONT-FAMILY: Times New Roman, serif; FONT-SIZE: 9pt"&gt;During

      the year ended June 30, 2013, the Company incurred $22,500

      (December 31, 2012 - $43,500) in consulting fees relating to

      this agreement, of which $37,500 (December 31, 2012 -

      $15,000) is recorded in the account payable &amp;#8211; related

      parties balance as at June 30, 2013.&lt;/font&gt;

    &lt;/div&gt;&lt;br/&gt;&lt;table id="list-8" style="width: 100%; font-family: times new roman; font-size: 11pt; margin-left: 30px;" cellspacing="0" cellpadding="0"&gt;



        &lt;tr valign="top"&gt;

          &lt;td style="width: 56px;" align="right"&gt;

            &lt;div&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;d)&amp;#160;&amp;#160;

              &amp;#160;&amp;#160;&amp;#160;&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

          &lt;td width="1509"&gt;

            &lt;div style="text-indent: 0pt; margin-left: 0pt; margin-right: 0pt;" align="justify"&gt;

              &lt;font style="display: inline; font-family: Times New Roman, serif; font-size: 9pt;"&gt;On

              January 2, 2013, the Company entered into a

              consulting agreement with The Holden Group, LLC (the

              &amp;#8220;Consultant&amp;#8221;) whereby the Company paid

              the Consultant $2,000 and issued 600,000 restricted

              common shares of the Company upon the execution of

              the agreement as well as pay $500 on each of the

              first, second and third month anniversaries of the

              agreement.&lt;/font&gt;

            &lt;/div&gt;

          &lt;/td&gt;

        &lt;/tr&gt;



    &lt;/table&gt;&lt;br/&gt;</NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>The entire disclosure for significant arrangements with third parties, which includes operating lease arrangements and arrangements in which the entity has agreed to expend funds to procure goods or services, or has agreed to commit resources to supply goods or services, and operating lease arrangements. Descriptions may include identification of the specific goods and services, period of time covered, minimum quantities and amounts, and cancellation rights.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 210

 -SubTopic 10

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.5-02.25)

 -URI http://asc.fasb.org/extlink&amp;oid=6877327&amp;loc=d3e13212-122682



Reference 2: http://www.xbrl.org/2003/role/presentationRef

 -Publisher SEC

 -Name Regulation S-X (SX)

 -Number 210

 -Section 02

 -Paragraph 25

 -Article 5



Reference 3: http://www.xbrl.org/2003/role/presentationRef

 -Publisher SEC

 -Name Regulation S-X (SX)

 -Number 210

 -Section 03

 -Paragraph 19

 -Article 7



Reference 4: http://www.xbrl.org/2003/role/presentationRef

 -Publisher SEC

 -Name Regulation S-X (SX)

 -Number 210

 -Section 03

 -Paragraph 17

 -Article 9



Reference 5: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 942

 -SubTopic 210

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.9-03.17)

 -URI http://asc.fasb.org/extlink&amp;oid=6876686&amp;loc=d3e534808-122878



Reference 6: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 944

 -SubTopic 210

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.7-03.(a)(19))

 -URI http://asc.fasb.org/extlink&amp;oid=6879938&amp;loc=d3e572229-122910



</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Commitments Disclosure [Text Block]</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>6. Commitments</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://hdsicorp.com/role/6Commitments</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
