simplified the class dependency declaration 

Using `->` and `~>` to declare resource dependency requires less code. Also, `~>` (notify) implies require.