Rewriting app from scratch