Final version to submit, fixed logic and css.