first attempt of sequential program