move Main into a package