Did problem 3
started a basic library for factoring