started code, got curl to work