Partially done with while part