started writing base code