Made this a little DRYer by using a constructor
Merge pull request #1 from jazonv/patch-1

Made this a little DRYer by using a constructor