Coded the use case described in #1