Working on graphics interfaces (compile but crash)