rewrite constructor with coffee