Got program to work. Everything is displayed properly.