Update FileReceiver.java

Changed FileReceiver to a class