added MyScanner class