using modularize moethod to create modules