Modularised code. 
Performed testing.