Second Commit
Added some java files for thread