program working properly , but it still problem to fulfill the requirements. Can someone explain why?