renamed apps directory to example and updated codes.