adding helper functions. updating sample Buildfile file