Fixed coding errors and added Plant Structure