got algorithm working for options 1-4