example code using the theano library