added add and list functionality