validated file extensions .rb .txt

Verified file format extensions for .rb and .txt files