ticket:6 files and main functionality