If you want to do it that way, why haven't you just followed the documentation ?