simplified the class dependency declaration 

Using `->` and `~>` to declare resource dependency requires less code. Also, `~>` (notify) implies require.
Merge pull request #51 from robbyt/patch-1

simplified the class dependency declaration