First version of backend