code created for Thinkful.com program