Added a little of backend for task #4.