Nearly everything completed, all's left is to create a function or loop