added alison's solution