Front page work

Basic loops logic is working.