working dependent case
Merge pull request #3 from karlkumbier/improved_code

working dependent case