setting up pig lab
refactoring pig lab