added equals method
implemented methods
moved to package
removed redundant File