logic almost done, please indent with 2 spaces