Added init
added seek method