for Newton Circus coding challenge