Logic works well and queries mechanism was implemented successfully