Create GraphItem class