Version 1.0

Works, but time out. Will do the second version without use struct.