implementing file and variable classes