finishing code samples, adding front-end