Replaced UI and Algorithm classes