implemented simple version of practice use case