adding initial code from private bitbucket repo