modularized code + hspec example