Added rake build task for encapsulation