created basic books service, using promises