There's a recommended way to do this, which should be "better" to use. Take a look here, Appendix B section 2.
Blocks
Own blocks creation with course
This discussion has been locked so you can no longer reply to it.