Finished coding the front-end