might be better to start from loopback example