Finished problem 26. Sort of a hacky way, but it works, and quickly.