First functioning prototype

Just need to fix the "todo" statement i put there