problem 1 logic done, but i am le tired so more later