Algorithm Design & Logic Testing For Unilife App