Version 1 of solution to Assignment
No Error checking is included