updated final with ryan and patrick parts, formatted to work