finished ch5-2 and everything works