added lower half of code

gah