practice for common interview functions