Raw working app (a lot of bugs in code + not optimized)