Completed Task 4, accounting for homology in code, :D, need to add switch for better functionality, think about presentation