as3 syntax error: package is unexpected

So I’m new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error:

Line 1: 1083: syntax error: package is unexpected

Anyone see what I am missing here?

package  {
	
	import flash.display.BitmapData;
	import flash.display.MovieClip;
	import flash.utils.setInterval;
	import flash.geom.Rectangle;
	import flash.geom.Point;
	
	
	var visibleBitmap = new BitmapData(800, 800, true, 0x00FFFF00);
	_root.createEmptyMovieClip("snow", _root.getNextHighestDepth());
	snow.addChildAt(visibleBitmap, 33);
	var hitBitmap = new BitmapData(800, 800, true, 0x00ffffff);
	hitBitmap.draw(limit);
	var hitPoint = new Point(hitBitmap.rect.x, hitBitmap.rect.y);
	
	
	var dir = Math.round(Math.random() * 2) - 1;
	
	i = 0
	
	
	setInterval(dropSnow, 50);
	
	
	function dropSnow() 
	{
		i++;
		_root.attachMovie("snow", "snow" + i, i);
	}
}