Implement basic data structure bound to firebase