using methods in files