added my solution w/reflection