added some code for back-end part
added some code for back-end part#2