added bcl tutorial code to our code