added method to draw syntactic tree