refactored basic.ts to explicitly import modules