function implemented which creates an initial block from a given
parsed program