Proper way of creating module