Scanner into separate file