Implement first version of analyze service